<template>
  <div>
    <AppTopnav />
    <AppHeader />
    <AppHeaderSticky />
    <!-- 一级路由 home首页 -->
    <RouterView />
    <AppFooter />
  </div>
</template>

<script>
import { useStore } from "vuex";
import AppTopnav from "@/components/app-topnav";
import AppHeader from "@/components/app-header";
import AppHeaderSticky from '@/components/app-header-sticky';
import AppFooter from "@/components/app-footer";
export default {
  name: "Layout",
  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },
  setup() {
    const store = useStore()
    store.dispatch('category/getList')
    return {

    }
  },
};
</script>

<style scoped lang="less"></style>
